package org.example.springoauth2.securitycommon.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author hzq
 * @date 2021/9/11 15:37
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class JdbcUserAuth implements Serializable {
    /*JdbcUser.unionId*/
    @JsonIgnore
    private String unionId;
    /*租户id*/
    @JsonIgnore
    private Integer tenantId;
    /*认证类型*/
    private String authType;
    /*标识*/
    private String key;
    /*密码*/
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String secret;
}
